<#assign className = table.className>   
<#assign classNameLower = className?uncap_first>   
package ${basepackage}.dao;

import java.util.List;

import org.springframework.stereotype.Repository;
import com.dm.framework.generic.GenericDao;

import ${basepackage}.model.${className};
import ${basepackage}.query.${className}Query;
@Repository
public interface ${className}Dao extends GenericDao<${className},${table.idColumn.javaType}>{
	
	<#list table.columns as column>
	<#if column.unique && !column.pk>
	public ${className} getBy${column.columnName}(${column.javaType} v) {
		return (${className})getSqlSessionTemplate().selectOne("${className}.getBy${column.columnName}",v);
	}	
	
	</#if>
	</#list>
	List<${className}> findByCnd(${className}Query query);
}
